package cn.gzjp.modules.logis.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.logis.entity.LogisMessage;
import cn.gzjp.modules.logis.dao.LogisMessageDao;

/**
 * 消息Service
 * @author zengcp
 * @version 2018-05-16
 */
@Service
@Transactional(readOnly = true)
public class LogisMessageService extends CrudService<LogisMessageDao, LogisMessage> {

	public LogisMessage get(String id) {
		return super.get(id);
	}
	
	public List<LogisMessage> findList(LogisMessage logisMessage) {
		return super.findList(logisMessage);
	}
	
	public Page<LogisMessage> findPage(Page<LogisMessage> page, LogisMessage logisMessage) {
		return super.findPage(page, logisMessage);
	}
	
	@Transactional(readOnly = false)
	public void save(LogisMessage logisMessage) {
		super.save(logisMessage);
	}
	
	@Transactional(readOnly = false)
	public void delete(LogisMessage logisMessage) {
		super.deleteByLogic(logisMessage);
	}
	
}